<?php
defined('_JEXEC') or die('Restricted access');

class modListLikeBookHelper
{
    /**
     * lay danh sach 10 cuon sach duoc yeu thich nhat
     */
	function getListLikedBook($paramcount)
	{
		$db = JFactory::getDBO();
       
		$query = "SELECT a.* from #__cuonsach as a where a.so_luong_xem > 0 order by a.so_luong_xem desc limit " . $paramcount;
		$db->setQuery($query);
		$listbook = $db->loadRowList();
		return $listbook;
	}
}
?>
